
var dbUtil = require('./dbUtil')


function insert(in_detail,callback) {

    var sql="insert into stock_in_detail(product_id,quantity,stock_in_id)" +
        "value(?,?,?)" ;
    var params=[in_detail.product_id,in_detail.quantity,in_detail.stock_in_id];

    dbUtil.query(sql,params,function (error,result) {
        callback(result)
    })
}

module.exports={
    insert
}